package com.weitu.contractor.entity;

import java.io.Serializable;

/** 
 * 承包商管理_曝光台表 HSE_CM_EXPOSURE
 * @author LiMeng
 * date 2017/04/15 15:50
 */
public class ContractorExposure implements Serializable {
    //串行版本ID
    private static final long serialVersionUID = -4111481787332226016L;

    // 主键 使用uuid
    private String id;

    // 标识
    private String code;

    // 备注
    private String remarks;

    // 删除标记 0未删除 1 已删除  默认：((0))
    private Integer delState;

    // 添加人
    private String addUserId;

    // 添加人部门Id
    private String addDeptId;

    // 添加时间
    private String addTime;

    // 修改人部门Id
    private String updateDeptId;

    // 最后修改人
    private String updateUserId;

    // 最后修改时间
    private String updateTime;

    // 承包商id
    private String contractorAuditId;

    // 曝光开始日期
    private String exposureStartDate;

    // 曝光结束日期
    private String exposureEndDate;

    // 申请人id
    private String applicantId;

    // 申请日期
    private String applicantDate;

    // 曝光原因
    private String exposureReason;

    // 处罚措施
    private String punishContent;

    // 审批状态
    private Integer auditState;

    //添加人名称
    private String addUserName;

    //添加部门名称
    private String addDeptName;

    //提请人名称
    private String applicantName;

    //状态名称
    private String auditStateName;

    //承包商资质
    private ContractorAudit contractorAudit;

    /**
     * 获取 主键 使用uuid HSE_CM_EXPOSURE.id
     * @return 主键 使用uuid
     */
    public String getId() {
        return id;
    }

    /** 
     * 设置 主键 使用uuid HSE_CM_EXPOSURE.id
     * @param id 主键 使用uuid
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    /** 
     * 获取 标识 HSE_CM_EXPOSURE.code
     * @return 标识
     */
    public String getCode() {
        return code;
    }

    /** 
     * 设置 标识 HSE_CM_EXPOSURE.code
     * @param code 标识
     */
    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    /** 
     * 获取 备注 HSE_CM_EXPOSURE.remarks
     * @return 备注
     */
    public String getRemarks() {
        return remarks;
    }

    /** 
     * 设置 备注 HSE_CM_EXPOSURE.remarks
     * @param remarks 备注
     */
    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    /** 
     * 获取 删除标记 0未删除 1 已删除 HSE_CM_EXPOSURE.delState
     * @return 删除标记 0未删除 1 已删除
     */
    public Integer getDelState() {
        return delState;
    }

    /** 
     * 设置 删除标记 0未删除 1 已删除 HSE_CM_EXPOSURE.delState
     * @param delState 删除标记 0未删除 1 已删除
     */
    public void setDelState(Integer delState) {
        this.delState = delState;
    }

    /** 
     * 获取 添加人 HSE_CM_EXPOSURE.addUserId
     * @return 添加人
     */
    public String getAddUserId() {
        return addUserId;
    }

    /** 
     * 设置 添加人 HSE_CM_EXPOSURE.addUserId
     * @param addUserId 添加人
     */
    public void setAddUserId(String addUserId) {
        this.addUserId = addUserId == null ? null : addUserId.trim();
    }

    /** 
     * 获取 添加人部门Id HSE_CM_EXPOSURE.addDeptId
     * @return 添加人部门Id
     */
    public String getAddDeptId() {
        return addDeptId;
    }

    /** 
     * 设置 添加人部门Id HSE_CM_EXPOSURE.addDeptId
     * @param addDeptId 添加人部门Id
     */
    public void setAddDeptId(String addDeptId) {
        this.addDeptId = addDeptId == null ? null : addDeptId.trim();
    }

    /** 
     * 获取 添加时间 HSE_CM_EXPOSURE.addTime
     * @return 添加时间
     */
    public String getAddTime() {
        return addTime;
    }

    /** 
     * 设置 添加时间 HSE_CM_EXPOSURE.addTime
     * @param addTime 添加时间
     */
    public void setAddTime(String addTime) {
        this.addTime = addTime == null ? null : addTime.trim();
    }

    /** 
     * 获取 修改人部门Id HSE_CM_EXPOSURE.updateDeptId
     * @return 修改人部门Id
     */
    public String getUpdateDeptId() {
        return updateDeptId;
    }

    /** 
     * 设置 修改人部门Id HSE_CM_EXPOSURE.updateDeptId
     * @param updateDeptId 修改人部门Id
     */
    public void setUpdateDeptId(String updateDeptId) {
        this.updateDeptId = updateDeptId == null ? null : updateDeptId.trim();
    }

    /** 
     * 获取 最后修改人 HSE_CM_EXPOSURE.updateUserId
     * @return 最后修改人
     */
    public String getUpdateUserId() {
        return updateUserId;
    }

    /** 
     * 设置 最后修改人 HSE_CM_EXPOSURE.updateUserId
     * @param updateUserId 最后修改人
     */
    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId == null ? null : updateUserId.trim();
    }

    /** 
     * 获取 最后修改时间 HSE_CM_EXPOSURE.updateTime
     * @return 最后修改时间
     */
    public String getUpdateTime() {
        return updateTime;
    }

    /** 
     * 设置 最后修改时间 HSE_CM_EXPOSURE.updateTime
     * @param updateTime 最后修改时间
     */
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }

    /** 
     * 获取 承包商id HSE_CM_EXPOSURE.contractorAuditId
     * @return 承包商id
     */
    public String getContractorAuditId() {
        return contractorAuditId;
    }

    /** 
     * 设置 承包商id HSE_CM_EXPOSURE.contractorAuditId
     * @param contractorAuditId 承包商id
     */
    public void setContractorAuditId(String contractorAuditId) {
        this.contractorAuditId = contractorAuditId == null ? null : contractorAuditId.trim();
    }

    /** 
     * 获取 曝光开始日期 HSE_CM_EXPOSURE.exposureStartDate
     * @return 曝光开始日期
     */
    public String getExposureStartDate() {
        return exposureStartDate;
    }

    /** 
     * 设置 曝光开始日期 HSE_CM_EXPOSURE.exposureStartDate
     * @param exposureStartDate 曝光开始日期
     */
    public void setExposureStartDate(String exposureStartDate) {
        this.exposureStartDate = exposureStartDate == null ? null : exposureStartDate.trim();
    }

    /** 
     * 获取 曝光结束日期 HSE_CM_EXPOSURE.exposureEndDate
     * @return 曝光结束日期
     */
    public String getExposureEndDate() {
        return exposureEndDate;
    }

    /** 
     * 设置 曝光结束日期 HSE_CM_EXPOSURE.exposureEndDate
     * @param exposureEndDate 曝光结束日期
     */
    public void setExposureEndDate(String exposureEndDate) {
        this.exposureEndDate = exposureEndDate == null ? null : exposureEndDate.trim();
    }

    /** 
     * 获取 申请人id HSE_CM_EXPOSURE.applicantId
     * @return 申请人id
     */
    public String getApplicantId() {
        return applicantId;
    }

    /** 
     * 设置 申请人id HSE_CM_EXPOSURE.applicantId
     * @param applicantId 申请人id
     */
    public void setApplicantId(String applicantId) {
        this.applicantId = applicantId == null ? null : applicantId.trim();
    }

    /** 
     * 获取 申请日期 HSE_CM_EXPOSURE.applicantDate
     * @return 申请日期
     */
    public String getApplicantDate() {
        return applicantDate;
    }

    /** 
     * 设置 申请日期 HSE_CM_EXPOSURE.applicantDate
     * @param applicantDate 申请日期
     */
    public void setApplicantDate(String applicantDate) {
        this.applicantDate = applicantDate == null ? null : applicantDate.trim();
    }

    /** 
     * 获取 曝光原因 HSE_CM_EXPOSURE.exposureReason
     * @return 曝光原因
     */
    public String getExposureReason() {
        return exposureReason;
    }

    /** 
     * 设置 曝光原因 HSE_CM_EXPOSURE.exposureReason
     * @param exposureReason 曝光原因
     */
    public void setExposureReason(String exposureReason) {
        this.exposureReason = exposureReason == null ? null : exposureReason.trim();
    }

    /** 
     * 获取 处罚措施 HSE_CM_EXPOSURE.punishContent
     * @return 处罚措施
     */
    public String getPunishContent() {
        return punishContent;
    }

    /** 
     * 设置 处罚措施 HSE_CM_EXPOSURE.punishContent
     * @param punishContent 处罚措施
     */
    public void setPunishContent(String punishContent) {
        this.punishContent = punishContent == null ? null : punishContent.trim();
    }

    /** 
     * 获取 审批状态 HSE_CM_EXPOSURE.auditState
     * @return 审批状态
     */
    public Integer getAuditState() {
        return auditState;
    }

    /** 
     * 设置 审批状态 HSE_CM_EXPOSURE.auditState
     * @param auditState 审批状态
     */
    public void setAuditState(Integer auditState) {
        this.auditState = auditState;
    }

    public String getAddUserName() {
        return addUserName;
    }

    public void setAddUserName(String addUserName) {
        this.addUserName = addUserName;
    }

    public String getAddDeptName() {
        return addDeptName;
    }

    public void setAddDeptName(String addDeptName) {
        this.addDeptName = addDeptName;
    }

    public String getApplicantName() {
        return applicantName;
    }

    public void setApplicantName(String applicantName) {
        this.applicantName = applicantName;
    }

    public String getAuditStateName() {
        return auditStateName;
    }

    public void setAuditStateName(String auditStateName) {
        this.auditStateName = auditStateName;
    }

    public ContractorAudit getContractorAudit() {
        return contractorAudit;
    }

    public void setContractorAudit(ContractorAudit contractorAudit) {
        this.contractorAudit = contractorAudit;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ContractorExposure{");
        sb.append("id='").append(id).append('\'');
        sb.append(", code='").append(code).append('\'');
        sb.append(", remarks='").append(remarks).append('\'');
        sb.append(", delState=").append(delState);
        sb.append(", addUserId='").append(addUserId).append('\'');
        sb.append(", addDeptId='").append(addDeptId).append('\'');
        sb.append(", addTime='").append(addTime).append('\'');
        sb.append(", updateDeptId='").append(updateDeptId).append('\'');
        sb.append(", updateUserId='").append(updateUserId).append('\'');
        sb.append(", updateTime='").append(updateTime).append('\'');
        sb.append(", contractorAuditId='").append(contractorAuditId).append('\'');
        sb.append(", exposureStartDate='").append(exposureStartDate).append('\'');
        sb.append(", exposureEndDate='").append(exposureEndDate).append('\'');
        sb.append(", applicantId='").append(applicantId).append('\'');
        sb.append(", applicantDate='").append(applicantDate).append('\'');
        sb.append(", exposureReason='").append(exposureReason).append('\'');
        sb.append(", punishContent='").append(punishContent).append('\'');
        sb.append(", auditState=").append(auditState);
        sb.append(", addUserName='").append(addUserName).append('\'');
        sb.append(", addDeptName='").append(addDeptName).append('\'');
        sb.append(", applicantName='").append(applicantName).append('\'');
        sb.append(", auditStateName='").append(auditStateName).append('\'');
        sb.append(", contractorAudit=").append(contractorAudit);
        sb.append('}');
        return sb.toString();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ContractorExposure that = (ContractorExposure) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (code != null ? !code.equals(that.code) : that.code != null) return false;
        if (remarks != null ? !remarks.equals(that.remarks) : that.remarks != null) return false;
        if (delState != null ? !delState.equals(that.delState) : that.delState != null) return false;
        if (addUserId != null ? !addUserId.equals(that.addUserId) : that.addUserId != null) return false;
        if (addDeptId != null ? !addDeptId.equals(that.addDeptId) : that.addDeptId != null) return false;
        if (addTime != null ? !addTime.equals(that.addTime) : that.addTime != null) return false;
        if (updateDeptId != null ? !updateDeptId.equals(that.updateDeptId) : that.updateDeptId != null) return false;
        if (updateUserId != null ? !updateUserId.equals(that.updateUserId) : that.updateUserId != null) return false;
        if (updateTime != null ? !updateTime.equals(that.updateTime) : that.updateTime != null) return false;
        if (contractorAuditId != null ? !contractorAuditId.equals(that.contractorAuditId) : that.contractorAuditId != null)
            return false;
        if (exposureStartDate != null ? !exposureStartDate.equals(that.exposureStartDate) : that.exposureStartDate != null)
            return false;
        if (exposureEndDate != null ? !exposureEndDate.equals(that.exposureEndDate) : that.exposureEndDate != null)
            return false;
        if (applicantId != null ? !applicantId.equals(that.applicantId) : that.applicantId != null) return false;
        if (applicantDate != null ? !applicantDate.equals(that.applicantDate) : that.applicantDate != null)
            return false;
        if (exposureReason != null ? !exposureReason.equals(that.exposureReason) : that.exposureReason != null)
            return false;
        if (punishContent != null ? !punishContent.equals(that.punishContent) : that.punishContent != null)
            return false;
        if (auditState != null ? !auditState.equals(that.auditState) : that.auditState != null) return false;
        if (addUserName != null ? !addUserName.equals(that.addUserName) : that.addUserName != null) return false;
        if (addDeptName != null ? !addDeptName.equals(that.addDeptName) : that.addDeptName != null) return false;
        if (applicantName != null ? !applicantName.equals(that.applicantName) : that.applicantName != null)
            return false;
        if (auditStateName != null ? !auditStateName.equals(that.auditStateName) : that.auditStateName != null)
            return false;
        return contractorAudit != null ? contractorAudit.equals(that.contractorAudit) : that.contractorAudit == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (code != null ? code.hashCode() : 0);
        result = 31 * result + (remarks != null ? remarks.hashCode() : 0);
        result = 31 * result + (delState != null ? delState.hashCode() : 0);
        result = 31 * result + (addUserId != null ? addUserId.hashCode() : 0);
        result = 31 * result + (addDeptId != null ? addDeptId.hashCode() : 0);
        result = 31 * result + (addTime != null ? addTime.hashCode() : 0);
        result = 31 * result + (updateDeptId != null ? updateDeptId.hashCode() : 0);
        result = 31 * result + (updateUserId != null ? updateUserId.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        result = 31 * result + (contractorAuditId != null ? contractorAuditId.hashCode() : 0);
        result = 31 * result + (exposureStartDate != null ? exposureStartDate.hashCode() : 0);
        result = 31 * result + (exposureEndDate != null ? exposureEndDate.hashCode() : 0);
        result = 31 * result + (applicantId != null ? applicantId.hashCode() : 0);
        result = 31 * result + (applicantDate != null ? applicantDate.hashCode() : 0);
        result = 31 * result + (exposureReason != null ? exposureReason.hashCode() : 0);
        result = 31 * result + (punishContent != null ? punishContent.hashCode() : 0);
        result = 31 * result + (auditState != null ? auditState.hashCode() : 0);
        result = 31 * result + (addUserName != null ? addUserName.hashCode() : 0);
        result = 31 * result + (addDeptName != null ? addDeptName.hashCode() : 0);
        result = 31 * result + (applicantName != null ? applicantName.hashCode() : 0);
        result = 31 * result + (auditStateName != null ? auditStateName.hashCode() : 0);
        result = 31 * result + (contractorAudit != null ? contractorAudit.hashCode() : 0);
        return result;
    }
}